package com.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 定时任务
 * @Date:   2020-10-19
 * @Version: V1.0
 */
@Data
public class QuartzJob implements Serializable {

    public static final String JOB_KEY = "JOB_KEY";

    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**Spring Bean名称*/
    @ApiModelProperty(value = "Spring Bean名称")
    private String beanName;
	/**cron 表达式*/
    @ApiModelProperty(value = "cron 表达式")
    private String cronExpression;
	/**状态：1暂停、0启用*/
    @ApiModelProperty(value = "状态：1暂停、0启用")
    private Integer isPause;
	/**任务名称*/
    @ApiModelProperty(value = "任务名称")
    private String jobName;
	/**方法名称*/
    @ApiModelProperty(value = "方法名称")
    private String methodName;
	/**参数*/
    @ApiModelProperty(value = "参数")
    private String params;
	/**备注*/
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建或更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建或更新日期")
    private Date updateTime;
}
